﻿//
//   Copyright (c) 2016  All rights reserved.
//

using System;
using UnityEngine.Scripting;

namespace WzhModule.GM
{

#if STRIP_DBG_SETTINGS
    [System.Diagnostics.ConditionalAttribute("FALSE")]
#endif
#if !STRIP_DBG_SETTINGS
    [Preserve]
#endif
    [AttributeUsage(AttributeTargets.Class)]
    public class WzhGMClass : Attribute
    {
        public string TabName;
        public int Sequence;

        public bool IsLeftPanel;
        public bool IsRightPanel;



        public WzhGMClass(string tabName)
        {
            TabName = tabName;
            Sequence = int.MaxValue;
        }

        public WzhGMClass(string tabName, int sequence)
        {
            TabName = tabName;
            Sequence = sequence;
        }

        /// <summary>左边还是右边</summary>
        public WzhGMClass(bool isRight)
        {
            string tabName = isRight ? "Right" : "Left";
            TabName = tabName;
            Sequence = int.MaxValue;
            IsLeftPanel = !isRight;
            IsRightPanel = isRight;
        }
    }

}
